<div id="mainMenu">
<?php switch ($type): ?>
<?php default: ?>
<?php case 'txt': ?>
<?php include_partial('default/txtMenu', array('menu'=>$menu, 'currentItem'=>$currentItem)); ?>
<?php break; ?>

<?php case 'img': ?>
<?php include_partial('default/imgMenu', array('menu'=>$menu, 'currentItem'=>$currentItem)); ?>
<?php break; ?>
<?php endswitch; ?>
</div>